#define _CRT_SECURE_NO_WARNINGS 1

#include"stack.h"

void test1()
{
	stack s1;
	stackinit(&s1);
	stackpush(&s1, 1);
	stackpush(&s1, 2);
	stackpush(&s1, 3);
	stackpush(&s1, 4);
	while (!stackempty(&s1))
	{
		printf("%d ", stacktop(&s1));
		stackpop(&s1);
	}
	stackdestory(&s1);
}
int main()
{
	test1();
	return 0;
}